<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
        <script src="../../static/js/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<table id="mytable">
       <tr>
            <td>
                 第一行
            </td>
        </tr>
</table>

<script>
       //选取你的table，添加一行
       $("#mytable").append("<tr><td>第二行</td></tr>")
</script>

<div class="up_file">
                    <ul class="menu">
                         <li><input type="text" name="text" id="text" readonly="readonly" ></li>
                         <li><input type="button" name="button" id="button" value="选择文件"></li>
                         <li><input type="file" id="file" name="file" class="file" style="display:none"></li>
                    </ul>
                </div>

<script type="text/javascript">


        $(document).ready(function()
        {
        var file = document.getElementById("file");
        var text = document.getElementById("text");

        $("#button").click(function()
        {
            //alert("hahaha");
            file.click();
        });
        file.onchange = type;
        function type()
        {text.value = file.value;}
    });
</script>
</body>
</html>